package com.sx.core.dao

import com.sx.core.model.Order
import com.sx.core.vo.OrderContentVo
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Select

/**
 * Created by lihao on 2018/12/5.
 */
@Mapper
interface OrderMapper extends CurdMapper<Order>{

    @Select("SELECT o.*,c.no,c.title FROM t_order o JOIN t_sx_content c on o.contentid=c.id WHERE o.id=#{orderid}")
    OrderContentVo getOrderContent(String orderid)
}
